<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
	
				/*闰年  能被4整除并且不能被100整除 或者能被400整除的年份*/
				var year = prompt('请您输入年份:')
				if(year % 4 == 0 && year % 100 !=0 || year % 400 == 0){
					alert(year + '年是闰年');
				}else {
					alert(year + '年是平年')	;
				}
		
		</script>
	</head>
	<body>
	</body>
</html>
